package com.包装者模式;

import com.包装者模式.decorator.RedShapeDecorator;
import com.包装者模式.decorator.ShapeDecorator;
import com.包装者模式.decorator.GreenShapeDecorator;

/**
 * @author: 
 * @Date: 2022/10/12
 * @Description:
 */
public class Main {
    public static void main(String[] args) {
        ShapeDecorator redRectangle = new GreenShapeDecorator(new RedShapeDecorator(new CircleShape()));
        redRectangle.draw();

    }
}
